<?php
namespace modules\admin\action\submit\groups;

use library\AjaxAction;
use idea\ap\Ap;
use helper\Util;

/**
 * RemoveAction class file
 * 删除管理组表单提交数据处理
 * @author 宋欢 <iphper@yeah.net>
 * @version $Id: RemoveAction.php 1 2013-02-08 00:48:06Z huan.song $
 * @package modules.admin.action.submit.groups
 * @since 1.0
 */
class RemoveAction extends AjaxAction
{
	/**
	 * (non-PHPdoc)
	 * @see idea\mvc\interfaces.Action::run()
	 */
	public function run()
	{
		$id = Ap::getRequest()->getInteger('id');
		$ret = Util::getService('AdminsGroups', 'admin')->removeByPk($id);
		$this->display($ret);
	}
}
